package ch12.variances;

public class None<T> extends Option<T> {

    @Override
    public T get() {
        throw new java.util.NoSuchElementException();
    }

    @Override
    public boolean isEmpty() {
        return true;
    }

    @Override
    public String toString() {
        return "None()";
    }

}
